<html  lang="en">
    <head>
        <title>Dettaglio scheda ordinazione</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
{% include 'style.css' with context %}
    </head>
    <body>
<div id="head">
            <div id="testo">{{ui|replace("_"," ")|capitalize()}}</div>
  </div>  <div id="rigaheader"></div>
<div>
<table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td class="report-header" width="50%"><h3>Numero: <strong >{{dao.numero}}</strong></h3></td>
    </tr>
    <tr>
        <td class="report-header" width="50%"><h3>Nomi Sposi: <strong >{{dao.nomi_sposi}}</strong></h3></td>
        </tr>
        <tr>
        <td class="report-header" width="50%"><h3>provenienza: <strong >{{dao.provenienza}}</strong></h3></td>
            </tr>
</table>
        <table cellpadding="0" cellspacing="4" border="0">
        <tr><td colspan="9" class="table-header">Righe SCHEDA LAVORAZIONE</td></tr>
        <tr>
            <td class="even-detail">Giacenza<br /> Impegnato<br /> differenza</td>
            <td class="even-detail">Codice</td>
            <td class="even-detail">Descrizione</td>
            <td class="even-number">Iva (%)</td>
            <td class="even-number">Quantita'</td>
            <td class="even-number">Prezzo netto</td>
            <td class="even-number">Totale</td>
        </tr>
        {% for riga in dao.righe %}
        <tr >
            {% if riga.id_magazzino %}
            <td width="16%" class="odd-detail" >{{riga.giacenza_articolo|int}} <br/> {{riga.impegnato_su_lavorazione|int}}<br/>({{riga.giacenza_articolo|int-riga.impegnato_su_lavorazione|int}}) </td>
            <td width="16%" class="odd-detail" >{{riga.codice_articolo}}</td>
            {% else %}
            <td width="16%" class="odd-detail"></td>
            {% endif %}
            <td width="40%" class="odd-detail">{{riga.descrizione}}</td>
            <td width="10%" class="odd-number">{{'%14.2f' % riga.percentuale_iva}}</td>
            <td width="12%" class="odd-number">{{environment.conf.number_format % ( riga.quantita * riga.moltiplicatore)}}</td>
            <td width="12%" class="odd-number">{{environment.conf.number_format % riga.valore_unitario_netto}}</td>
            <td width="10%" class="odd-number"><strong>{{environment.conf.number_format % ( riga.quantita * riga.moltiplicatore * riga.valore_unitario_netto )}}</strong></td>
        </tr>
        {% endfor %}
        </table>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
    <td width="55%">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                <td colspan="2" class="table-header">Riepilogo</td>
            </tr>
                <tr>
                    <td width="130px" class="odd-detail">Colore</td>
                    <td class="odd-detail"><strong>{{dao.colore_stampa}}</strong></td>
                </tr>
                <tr>
                    <td class="even-detail">Carattere</td>
                    <td class="even-detail"><strong >{{dao.carattere_stampa}}</strong></td>
                </tr>
            </table></td>
<td>
        <table colspan="2" cellpadding="0" cellspacing="0" border="0">
            <tr><td class="table-header" colspan="2">Informazioni articoli</td></tr>
            <tr>
                <td width="200px" class="odd-detail">Listino</td>
<!--                <td class="odd-detail">
                    <strong py:content="dao.descrizione_listino"></strong>
                </td>-->
            </tr>
            <tr>
                <td width="200px" class="odd-detail">Ricevuta</td>
                <td class="odd-detail">
                    <strong >{{dao.ricevuta_associata}}</strong>
                </td>
            </tr>
            <tr>
                <td class="even-detail">Saldato</td>
                <td class="even-detail">
                {% if dao.documento_saldato %}
                    <strong >si</strong>
                {% else %}
                    <strong >no</strong>
                    <strong >no</strong>
                {% endif %}
                </td>
            </tr>
        </table>
</td></tr>
</table>
<br /><br />
<!--
<div id="container">
-->
<!--
    <div id="footer">&nbsp; PromoGest&nbsp;  By&nbsp;   PromoTUX&nbsp; &nbsp; &nbsp;    -&nbsp;www.promotux.it </div>
-->
<!--
</div>
-->
    </body>
</html>
